<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'securityProfileItem.label', default: 'securityProfileItem')}" />
        <title>安全配置文件</title>
    </head>
    <body>
        <div class="small-header">
            <div class="hpanel">
                <div class="panel-body">
                    <div id="hbreadcrumb" class="pull-right">
                        <ol class="hbreadcrumb breadcrumb">
                            <li>Next CRM</li>
                            <li class="active">
                                <span>安全配置文件</span>
                            </li>
                        </ol>
                    </div>

                    <h2 class="font-light m-b-xs">
                        安全配置文件
                    </h2>
                </div>
            </div>
        </div>
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hgreen">
                <div class="panel-heading">
                    <div class="panel-tools">
                        <g:link action="create" class="btn btn-info btn-xs"><i class="fa fa-plus"></i>新建</g:link>
                    </div>
                    安全配置文件
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <g:sortableColumn property="name" title="拦截项名"/>
                                <g:sortableColumn property="controllerName" title="控制器名"/>
                                <g:sortableColumn property="actionName" title="方法名"/>
                                <g:sortableColumn property="active" title="生效"/>
                                <g:sortableColumn property="profileName" title="权限名"/>
                            </tr>
                            </thead>
                            <tbody>
                            <g:each in="${securityProfileItemList}">
                                <tr>
                                    <td><g:link action="show" id="${it?.id}" class="firstTd">${it?.name}</g:link></td>
                                    <td>${it?.controllerName}</td>
                                    <td>${it?.actionName}</td>
                                    <td>${it?.active}</td>
                                    <td>${it?.profile.name}</td>
                                </tr>
                            </g:each>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="panel-footer">
                    <div class="pagination">
                        <g:paginate total="${securityProfileItemCount ?: 0}" params="${params}"/>
                    </div>
                </div>
            </div>
        </div>
    </div>

    </body>
</html>